<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class HomeController extends Controller
{
   	public function index()
   	{
   		//前台首页
   		return view('home.index');
   	}
   	public function logout(Request $request)
    {
    	$request->session()->forget('id');
		//前台首页
    	return redirect('/');
  		// return 111;
}
}